package com.jgzx.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @author libo
 * @date 2021/8/13 15:26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "关闭状态查询DTO")
public class CloseQueryDTO extends IdDTO{

    @ApiModelProperty(value = "关闭状态：0-开启，1-关闭", example = "null")
    @NotNull(message = "关闭状态不能为空")
    private Integer close_flag;

    public CloseQueryDTO(Long hid, Integer close_flag) {
        super(hid);
        this.close_flag = close_flag;
    }
}
